package controller
{
	import model.BoardProxy;
	import model.LoginProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import view.mediators.ApplicationMediator;
	import view.mediators.DebugMediator;
	import view.mediators.LoginMediator;
	
	public class StartupCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void{
			var app:stratego = notification.getBody() as stratego;
			
			facade.registerMediator(new ApplicationMediator(app));
			facade.registerProxy(new LoginProxy());
			facade.registerMediator(new LoginMediator(app.log));
			facade.registerProxy(new BoardProxy());
			facade.registerMediator(new DebugMediator(app.debugWindow));
		}

	}
}